﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class LINQWhere : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string[] str = { "abc", "abcdef", "ab", "hhhhhh", "hhhabc", "dhabc" };
        var result = from data in str where data.Contains("abc") && data.Contains("d") select data;
        foreach(var i in result)
        {
            Label1.Text += i.ToString() + "<br>";
        }
    }
}